package cc.booku.owlbox.VideoPlayer.FullScreen;

import android.os.Bundle;
import android.view.View;


import com.dueeeke.videoplayer.player.VideoView;

import cc.booku.owlbox.R;


/**
 * 全屏播放
 * Created by Devlin_n on 2017/4/21.
 */

public class FullScreenActivity extends BaseActivity<FullScreenVideoView> {

    @Override
    protected View getContentView() {
        mVideoView = new FullScreenVideoView(this);
        return mVideoView;
    }

    @Override
    protected int getTitleResId() {
        return R.string.str_fullscreen_directly;
    }

    @Override
    protected void initView() {
        super.initView();

        Bundle bundle = getIntent().getExtras();
        String vod_play_url = bundle.getString("vod_play_url");
        String vod_name = bundle.getString("vod_name");
        mVideoView.setUrl(vod_play_url);
        FullScreenController controller = new FullScreenController(this);
        controller.setTitle(vod_name);
        mVideoView.setVideoController(controller);
        //mVideoView.setScreenScaleType(VideoView.SCREEN_SCALE_16_9);
        mVideoView.start();
    }
}
